home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Garbo
/
Garbo.cdr
/
mac
/
hypercrd
/
hc2_x
/
untcnvrs.sit
/
Unit Conversion
/
card_6161.txt
< prev
next >
Wrap
Text File
|
1990-11-02
|
7KB
|
285 lines
-- card: 6161 from stack: in
-- bmap block id: 6820
-- flags: 0000
-- background id: 3044
-- name: Area2
----- HyperTalk script -----
on closeCard
put empty into background field "toconvert"
put empty into background field "answer"
end closeCard
-- part 14 (button)
-- low flags: 00
-- high flags: A003
-- rect: left=282 top=55 right=82 bottom=474
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Acres to Hectares
----- HyperTalk script -----
on mouseUp
set numberformat to 0.000
put empty into background field "answer"
get first word of background field "toconvert"
put it into temp
if temp is "-" then
get second word of background field "toconvert"
divide it by -1
put it into temp
end if
put empty into background field "toconvert"
if temp is empty then
put temp && "0 Acres" into background field "toconvert"
else
put temp && " Acres" into background field "toconvert"
end if
multiply temp by 0.405
put temp && " Hectares" into background field "answer"
put empty into temp
end mouseUp
-- part 15 (button)
-- low flags: 00
-- high flags: A003
-- rect: left=282 top=87 right=114 bottom=474
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Hectares to Acres
----- HyperTalk script -----
on mouseUp
set numberformat to 0.000
put empty into background field "answer"
get first word of background field "toconvert"
put it into temp
if temp is "-" then
get second word of background field "toconvert"
divide it by -1
put it into temp
end if
put empty into background field "toconvert"
if temp is empty then
put temp && "0 Hectares" into background field "toconvert"
else
put temp && " Hectares" into background field "toconvert"
end if
divide temp by 0.405
put temp && " Acres" into background field "answer"
put empty into temp
end mouseUp
-- part 28 (button)
-- low flags: 00
-- high flags: A003
-- rect: left=283 top=122 right=149 bottom=475
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Km to Miles (Squared)
----- HyperTalk script -----
on mouseUp
set numberformat to 0.000
put empty into background field "answer"
get first word of background field "toconvert"
put it into temp
if temp is "-" then
get second word of background field "toconvert"
divide it by -1
put it into temp
end if
put empty into background field "toconvert"
if temp is empty then
put temp && "0 Sq. Kilometers" into background field "toconvert"
else
put temp && " Sq. Kilometers" into background field "toconvert"
end if
multiply temp by 0.386
put temp && " Sq. Miles" into background field "answer"
put empty into temp
end mouseUp
-- part 29 (button)
-- low flags: 00
-- high flags: A003
-- rect: left=283 top=152 right=179 bottom=475
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Miles to Km (Squared)
----- HyperTalk script -----
on mouseUp
set numberformat to 0.000
put empty into background field "answer"
get first word of background field "toconvert"
put it into temp
if temp is "-" then
get second word of background field "toconvert"
divide it by -1
put it into temp
end if
put empty into background field "toconvert"
if temp is empty then
put temp && "0 Sq. Miles" into background field "toconvert"
else
put temp && " Sq. Miles" into background field "toconvert"
end if
divide temp by 0.386
put temp && " Sq. Kilometers" into background field "answer"
put empty into temp
end mouseUp
-- part 30 (button)
-- low flags: 00
-- high flags: A003
-- rect: left=283 top=274 right=321 bottom=472
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Original Conversions
----- HyperTalk script -----
on mouseUp
get background field "toconvert"
visual effect wipe left slowly
go to card "Area"
put it into background field "toconvert"
end mouseUp
-- part 31 (button)
-- low flags: 00
-- high flags: 2000
-- rect: left=283 top=184 right=266 bottom=474
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: MoreInfo
----- HyperTalk script -----
on mouseUp
get background field "toconvert"
put it into storevalue
visual effect zoom open
go to card "ConversionInfo"
end mouseUp
-- part 32 (button)
-- low flags: 00
-- high flags: 2000
-- rect: left=75 top=288 right=305 bottom=134
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Distance
----- HyperTalk script -----
on mouseUp
visual effect zoom open
go to card Distance
end mouseUp
-- part 33 (button)
-- low flags: 00
-- high flags: 2000
-- rect: left=135 top=288 right=305 bottom=194
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Volume
----- HyperTalk script -----
on mouseUp
visual effect zoom open
go to card Volume
end mouseUp
-- part 34 (button)
-- low flags: 00
-- high flags: 2000
-- rect: left=75 top=306 right=323 bottom=134
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Temperature
----- HyperTalk script -----
on mouseUp
visual effect zoom open
go to card weight
end mouseUp
-- part 35 (button)
-- low flags: 00
-- high flags: 2000
-- rect: left=135 top=306 right=323 bottom=194
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Temperature
----- HyperTalk script -----
on mouseUp
visual effect zoom open
go to card temperature
end mouseUp
-- part contents for background part 7
----- text -----
Area
Conversions